package com.k7.mobile.platform.dao.impl;

import java.util.List;

import com.k7.mobile.platform.dao.IGramimageDAO;
import com.k7.mobile.platform.dataobject.GramimageDO;


public class GramimageDAOImpl extends BaseDAOImpl implements IGramimageDAO{

	@Override
	public Long add(GramimageDO gramimageDO) {
		
		Object id = getSqlMapClientTemplate().insert("GRAMIMAGE-ADD", gramimageDO);
		return (Long) id;
	}
	
	@Override
	public void delete(GramimageDO gramimageDO) {
		
		this.getSqlMapClientTemplate().delete("GRAMIMAGE-DEL", gramimageDO);
		
	}

	@Override
	public void update(GramimageDO gramimageDO) {
		
		this.getSqlMapClientTemplate().update("GRAMIMAGE-UPDATE", gramimageDO);
		
	}

	@Override
	public List<GramimageDO> findList(GramimageDO gramimageDO) {
		
		return this.executeQueryForList("FIND-GRAMIMAGE-LIST","FIND-GRAMIMAGE-LIST-COUNT",  gramimageDO);
	}

	@Override
	public GramimageDO getGramimage(GramimageDO gramimageDO) {
		return (GramimageDO) this.getSqlMapClientTemplate().queryForObject("GET-GRAMIMAGE", gramimageDO);
	}


}
